<?php
class Application_Model_OptionItem extends Application_Model_DomainObject{
	
	protected $_id;
	
	protected $_mykey;
	
	protected $_myvalue;
	
	protected $_description;
        
        public static function getFilter($name,$pagesize,$pageindex){
            $where=array();
            if($name != null){
                $where[" mykey like "] = "%".$name."%";
            }
            return Application_Model_OptionItem::getDao()->queryPage($where,'id desc',$pagesize,$pageindex); 
        }
        
        public static function getSearch($key){
            //$array=array('key'=>$key);
            return self::getDao()->queryOne(array('key'=>$key));
        }
  	
}